package membermanage.model.dao;

import java.util.ArrayList;

import membermanage.dto.ZipcodeDTO;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class ZipcodeDAO {
	private SqlMapClientTemplate client;
	private static ZipcodeDAO instance;
	private ZipcodeDAO(){}
	public static ZipcodeDAO getInstance(){
		if(instance == null){
			instance = new ZipcodeDAO();
		}
		return instance;
	}
	public void setSqlMapClientTemplate(SqlMapClientTemplate client){
		this.client = client;
	}
	
	public ArrayList<ZipcodeDTO> addCheck(String address){
		return (ArrayList<ZipcodeDTO>)client.queryForList("zipcode.checkAdd", address);
	}
	
	
}
